.class Lcom/waiqin365/lightapp/im/activity/ad;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnTouchListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;


# direct methods
.method private constructor <init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Lcom/waiqin365/lightapp/im/activity/g;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/im/activity/ad;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V

    return-void
.end method


# virtual methods
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 8

    const/4 v4, 0x0

    const v7, 0x7f0802e4

    const/4 v6, 0x4

    const/4 v1, 0x1

    const/4 v0, 0x0

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v2

    sparse-switch v2, :sswitch_data_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Z)Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->h(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->D(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v6}, Landroid/view/View;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->E(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/TextView;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-virtual {v2, v7}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->i(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Lcom/hyphenate/util/VoiceRecorder;

    move-result-object v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->i(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Lcom/hyphenate/util/VoiceRecorder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hyphenate/util/VoiceRecorder;->discardRecording()V

    :cond_0
    :goto_0
    return v0

    :sswitch_0
    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->A(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_1

    const-string/jumbo v2, "1"

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->A(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_1

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f08030a

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :goto_1
    move v0, v1

    goto :goto_0

    :cond_1
    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->B(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_3

    const-string/jumbo v2, "1"

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->B(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_3

    const-string/jumbo v2, "3"

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->B(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f080306

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_1

    :cond_2
    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f080309

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_1

    :cond_3
    invoke-static {}, Lcom/waiqin365/lightapp/im/utils/b;->a()Z

    move-result v2

    if-nez v2, :cond_4

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    const v3, 0x7f08085d

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_4
    :try_start_0
    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    const/4 v3, 0x1

    invoke-static {v2, v3}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->f(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Z)Z

    const/4 v2, 0x1

    invoke-virtual {p1, v2}, Landroid/view/View;->setPressed(Z)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->C(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/os/PowerManager$WakeLock;

    move-result-object v2

    invoke-virtual {v2}, Landroid/os/PowerManager$WakeLock;->acquire()V

    sget-boolean v2, Lcom/waiqin365/lightapp/im/adapter/ct;->a:Z

    if-eqz v2, :cond_5

    sget-object v2, Lcom/waiqin365/lightapp/im/adapter/ct;->b:Lcom/waiqin365/lightapp/im/adapter/ct;

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/im/adapter/ct;->a()V

    :cond_5
    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->D(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/view/View;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/view/View;->setVisibility(I)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->E(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/TextView;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    const v4, 0x7f0802e5

    invoke-virtual {v3, v4}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->g(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/TextView;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    const v4, 0x7f080308

    invoke-virtual {v3, v4}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->c(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/ImageView;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)[Landroid/graphics/drawable/Drawable;

    move-result-object v3

    const/4 v4, 0x0

    aget-object v3, v3, v4

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->g(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/TextView;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setBackgroundColor(I)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->i(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Lcom/hyphenate/util/VoiceRecorder;

    move-result-object v2

    const/4 v3, 0x0

    iget-object v4, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v4}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->j(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Ljava/lang/String;

    move-result-object v4

    iget-object v5, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-virtual {v5}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v5

    invoke-virtual {v2, v3, v4, v5}, Lcom/hyphenate/util/VoiceRecorder;->startRecording(Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    const/4 v3, 0x0

    invoke-static {v2, v3}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->c(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Z)Z

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->F(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_1

    :catch_0
    move-exception v1

    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->h(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V

    invoke-virtual {p1, v0}, Landroid/view/View;->setPressed(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->C(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/os/PowerManager$WakeLock;

    move-result-object v1

    invoke-virtual {v1}, Landroid/os/PowerManager$WakeLock;->isHeld()Z

    move-result v1

    if-eqz v1, :cond_6

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->C(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/os/PowerManager$WakeLock;

    move-result-object v1

    invoke-virtual {v1}, Landroid/os/PowerManager$WakeLock;->release()V

    :cond_6
    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->i(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Lcom/hyphenate/util/VoiceRecorder;

    move-result-object v1

    if-eqz v1, :cond_7

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->i(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Lcom/hyphenate/util/VoiceRecorder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hyphenate/util/VoiceRecorder;->discardRecording()V

    :cond_7
    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->D(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v6}, Landroid/view/View;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->E(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/TextView;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-virtual {v2, v7}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f08030f

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :sswitch_1
    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Z

    move-result v2

    if-nez v2, :cond_8

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result v2

    cmpg-float v2, v2, v4

    if-gez v2, :cond_9

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->g(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    const v3, 0x7f080310

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->g(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/TextView;

    move-result-object v0

    const v2, 0x7f020233

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->c(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/ImageView;

    move-result-object v0

    const v2, 0x7f020231

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->g(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Z)Z

    :cond_8
    :goto_2
    move v0, v1

    goto/16 :goto_0

    :cond_9
    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->g(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/TextView;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    const v4, 0x7f080308

    invoke-virtual {v3, v4}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->g(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/TextView;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setBackgroundColor(I)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->c(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/ImageView;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)[Landroid/graphics/drawable/Drawable;

    move-result-object v3

    aget-object v3, v3, v0

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->g(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Z)Z

    goto :goto_2

    :sswitch_2
    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->H(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Z

    move-result v2

    if-eqz v2, :cond_b

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Z)Z

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->h(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V

    invoke-virtual {p1, v0}, Landroid/view/View;->setPressed(Z)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->D(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2, v6}, Landroid/view/View;->setVisibility(I)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->E(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/TextView;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-virtual {v3, v7}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->C(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/os/PowerManager$WakeLock;

    move-result-object v2

    invoke-virtual {v2}, Landroid/os/PowerManager$WakeLock;->isHeld()Z

    move-result v2

    if-eqz v2, :cond_a

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->C(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/os/PowerManager$WakeLock;

    move-result-object v2

    invoke-virtual {v2}, Landroid/os/PowerManager$WakeLock;->release()V

    :cond_a
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result v2

    cmpg-float v2, v2, v4

    if-gez v2, :cond_c

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->i(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Lcom/hyphenate/util/VoiceRecorder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/util/VoiceRecorder;->discardRecording()V

    :cond_b
    :goto_3
    move v0, v1

    goto/16 :goto_0

    :cond_c
    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->I(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Z

    move-result v2

    if-nez v2, :cond_b

    :try_start_1
    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->i(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Lcom/hyphenate/util/VoiceRecorder;

    move-result-object v2

    invoke-virtual {v2}, Lcom/hyphenate/util/VoiceRecorder;->stopRecoding()I

    move-result v2

    if-lez v2, :cond_e

    new-instance v3, Ljava/io/File;

    iget-object v4, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v4}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->i(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Lcom/hyphenate/util/VoiceRecorder;

    move-result-object v4

    invoke-virtual {v4}, Lcom/hyphenate/util/VoiceRecorder;->getVoiceFilePath()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result v4

    if-eqz v4, :cond_d

    invoke-virtual {v3}, Ljava/io/File;->length()J

    move-result-wide v4

    const-wide/16 v6, 0x0

    cmp-long v3, v4, v6

    if-lez v3, :cond_d

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    iget-object v4, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v4}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->i(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Lcom/hyphenate/util/VoiceRecorder;

    move-result-object v4

    invoke-virtual {v4}, Lcom/hyphenate/util/VoiceRecorder;->getVoiceFilePath()Ljava/lang/String;

    move-result-object v4

    iget-object v5, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v5}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->i(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Lcom/hyphenate/util/VoiceRecorder;

    move-result-object v5

    iget-object v6, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-static {v6}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->j(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Lcom/hyphenate/util/VoiceRecorder;->getVoiceFileName(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-static {v2}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v2

    const/4 v6, 0x0

    invoke-static {v3, v4, v5, v2, v6}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_3

    :catch_1
    move-exception v2

    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    const v4, 0x7f080860

    invoke-virtual {v3, v4}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_3

    :cond_d
    :try_start_2
    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    const v4, 0x7f08085e

    invoke-virtual {v3, v4}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x0

    invoke-static {v2, v3, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_3

    :cond_e
    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ad;->a:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    const v4, 0x7f08085f

    invoke-virtual {v3, v4}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x0

    invoke-static {v2, v3, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    goto/16 :goto_3

    :sswitch_3
    move v0, v1

    goto/16 :goto_0

    :sswitch_4
    move v0, v1

    goto/16 :goto_0

    :sswitch_5
    move v0, v1

    goto/16 :goto_0

    :sswitch_6
    move v0, v1

    goto/16 :goto_0

    :sswitch_data_0
    .sparse-switch
        0x0 -> :sswitch_0
        0x1 -> :sswitch_2
        0x2 -> :sswitch_1
        0x105 -> :sswitch_3
        0x106 -> :sswitch_4
        0x205 -> :sswitch_5
        0x206 -> :sswitch_6
    .end sparse-switch
.end method
